POV-Ray : Newsgroups : povray.general : What causes this error? : What causes this error? Server Time
2 Nov 2024 11:23:41 EDT (-0400)
  What causes this error?  
From: Severi Salminen
Date: 10 Mar 2004 08:07:34
Message: <404f1316$1@news.povray.org>
Next scene gives an error "Expected 'undeclared identifier', empty array 
found instead" when I try to render it. Aren't A[0] and A[1] undeclared 
identifiers and shouldn't Pov-Ray turn them "into global identifiers of 
the type determined by the data which is read". If I uncomment the 
commented line, it works. What am I missing here and how should I 
correct the code to make it work?

PS. Don't forget to delete the test.dat this scene creates...

Severi S.

-----------------------

#declare A = array[2];

//#declare A[0]=0;

#fopen P_File "test.dat" write
     #write (P_File, 1,",",2)
#fclose P_File

#fopen P_File "test.dat" read
     #read (P_File, A[0],A[1])
#fclose P_File


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.